package com.java1412.user.mapper;

import com.java1412.common.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author java1412
 * @since 2023-06-08 10:29:28
 */
public interface UserMapper {

    @Select("select id,phone,pwd,sex,username AS name,img AS headImg,create_time from user where id=#{id}")
    public User findById(@Param("id") Integer id);
}
